package com.immortal.ai.tools;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Component;

/**
 * @author ywh
 * @version 1.0
 * @description: TODO
 * @date 2025/6/12 16:43
 */
@Component
public class TestTools {


    @Tool(description = "启动战甲")
    public String startMark45(@ToolParam(description = "恐怖分子位置") String position,  @ToolParam(description = "恐怖分子数量") String num){
        System.out.println("在位置为：" + position + "找到了恐怖分子，并启动战甲。剿灭了恐怖分子" + num+"人");
        return "在位置为：" + position + "找到了恐怖分子，并启动战甲。剿灭了恐怖分子" + num+"人";
    }


    @Tool(description = "预约班纳")
    public String subscribeBanNa(@ToolParam(description = "预约时间") String subscribeDate,  @ToolParam(description = "谈到主题") String takeTheme){
        System.out.println("和班纳博士约定的时间为：" + subscribeDate +"讨论的主题是：" + takeTheme );
        return "预约成功";
    }
}
